<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>九九乘法表</title>
</head>
<style>
    table{
        /* border: 1px solid black; */
        border-collapse: 1;
        text-align: center;
    }
    tr,th,td{
        width: 150px;
        height: 60px;
        border: 1px solid black;
        border-collapse: collapse;
    }
</style>
<body>
    
</body>
<script>
    var str = '<table>'
        for (let i = 1; i <= 9; i++) {
            str += '<tr>'
                for (let j = 1; j <= i; j++) {
                    str += `<td>${j} * ${i} = ${j*i}</td>`
                }
            str += '</tr>'
        }
        str += '</table>'
        document.write(str)
</script>
</html>